package com.example.gamestore.service;

import com.example.gamestore.pojo.User;

import java.util.List;

public interface UserService {
    User login(User user);

    List<User> query();

    void updateUser(User user);

    User add(User user);

    void delete(Long id);

    User getUserByUsernameAndPassword(String username, String password);

    boolean updatePassword(Long userId, String oldPassword, String newPassword);

    User getUserById(Long id);








}
